import React from 'react';

interface IProps {
  title: string;
  cb: () => void;
}

const Navbar: React.FC<IProps> = (props) => {
  return (
    <div>
      Navbar-{props.title}
      <button
        type="button"
        onClick={() => {
          props.cb();
        }}>
        click
      </button>
    </div>
  );
};

export default Navbar;
